package com.tencreat.domain.mall.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


/**
 * 资讯管理对象 mall_consult
 *
 * @author tencreat
 * @date 2022-01-10
 */
@Data
public class MallConsultVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value= "咨询ID")
    private Long id;

    @ApiModelProperty(value= "咨询编号")
    private String consultSn;

    @ApiModelProperty(value= "分类")
    private String classify;

    @ApiModelProperty(value= "标题")
    private String title;

    @ApiModelProperty(value= "状态")
    private Long state;

    @ApiModelProperty(value= "访问量")
    private Integer visits;

    @ApiModelProperty(value= "评论次数")
    private Integer commentsNumber;

    @ApiModelProperty(value= "作者")
    private String author;

    @ApiModelProperty(value= "源链接")
    private String originalLink;

    @ApiModelProperty(value= "发布源")
    private String publishingSource;

    @ApiModelProperty(value= "图片")
    private String picUrl;

    @ApiModelProperty(value= "图片集合")
    private List<String> picUrls;

    @ApiModelProperty(value= "是否推荐")
    private Integer recommend;

    @ApiModelProperty(value= "用户ID")
    private Long userId;

    @ApiModelProperty(value= "顺序")
    private Long sortOrder;

    @ApiModelProperty(value= "摘要")
    private String summary;

    @ApiModelProperty(value= "内容")
    private String context;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value= "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("点赞数量")
    private Integer likesCount;
}
